A man accused of raping a woman in Central Park last month was taken into custody Tuesday while working at a Burger King in Miami, police said, adding that he will also be charged in two earlier rapes in the park.

In a social media post, police identified the man as Dereck Rivera-Deleon and said the earlier attacks happened in 2021 and 2023.

The department did not say how investigators linked him to those attacks or release any details about either. Several days after the attack on Oct. 24, the NYPD released images of a man in his 30s wearing a black hoodie.

The most recent attack happened near East 66th Street and Fifth Avenue around 8:30 p.m., police said at the time. The victim, a 39-year-old woman, was taken to a hospital, and the man fled, according to police.

NYPD detectives assigned to a U.S. Marshals regional fugitive task force took Rivera-Deleon into custody with help from the U.S. Marshals Service, officials said on X.

Police did not say what charges he faces in the October attack or when he will be brought back to New York.

It was not immediately clear whether Rivera-Deleon has a lawyer.