Metro

Buy Pop Queen Madge’s castle

Madonna slept here — and for $23.5 million, you can, too.

The Material Girl yesterday put her swanky Central Park West co-op up for sale.

The duplex, near West 64th Street, is on the fifth and sixth floors of the Harperley Hall building.

It contains more than 6,000 square feet of space and features huge windows with views of the Park.

The pad has Juliet balconies, five wood-burning fireplaces, four bedroom wings, eight baths and a chef’s eat-in kitchen, according to the co-listing by Arabella Buckworth of Brown Harris Stevens and Adam Modlin of The Modlin Group.

The apartment even comes with a classic Madonna controversy.

The pop icon settled a lawsuit with her upstairs neighbor in 2011 over accusations that Madonna blasted music and danced too loudly.

The terms of the deal were not reported.

The suit, filed two years earlier by annoyed neighbor Karen George, claimed Madonna blared music, causing walls to shake for as much as three hours a day.

The board had threatened Madonna with eviction if she didn’t adhere to the rules.

Madonna decided to move out last year and into an East Side town house she bought for $32 million.

She is now renting a home in the Hamptons while searching for her dream house there.

She bought a horse farm in the enclave but can’t build a house on the property.