A man — who cops believe may have been homeless — was found dead on Brooklyn subway tracks early Sunday, police said.

Cops found the unidentified man’s body lying on the Q train tracks between the Seventh Avenue and Prospect Park stations around 6:45 a.m., cops said.

Police did not immediately know the man’s age, or how he died.