A landmark Brooklyn home that just hit the market dates back to the 19th century — but its recent history as a filming hotspot might also peak potential buyers’ interest.

Located in Fort Greene and listed for $5,600,000 by Douglas Elliman’s Amy Wendling, the brownstone was featured on season 2 of HBO’s “Girls,” a spokesman for the realty company said.

On the episode, called “One Man’s Trash,” lead character Hannah (Lena Dunham) follows a doctor (Patrick Wilson) into his house to confess that she is the one leaving trash in his bins from the coffee shop where she works. Hannah then ends up having a 24-hour affair with the doctor.

The home at 52 South Oxford St. has also been featured on “Difficult People,” “Elementary” and “Saturday Night Live;” in Glamour and Food and Wine magazines; and in numerous commercials.

With 5,600 feet of space — including five levels, plus a basement — there is plenty of room inside this house for a TV or magazine shoot.

The brownstone has been completely gut-renovated, but retains its original 19th century woodwork and 13-foot ceilings. A winding staircase connects the five floors, which currently are configured to accommodate three separate families.

For entertaining, there is a garden patio; an open chef's kitchen with an island, Miele refrigerator and Wolf Stove with built-in grill; and a basement level perfect for storage or a wine cellar.