ELBA, N.Y. (WIVB) — An Elba man has been charged with Third-Degree Rape and Endangering the Welfare of a Child.

New York State Police say Danilo Ramirez-Lopez, 21, befriended a 16-year-old girl on Facebook before driving to her home and engaging in a sexual act with her at another place.

According to authorities, this happened on Sunday in Allegany County. On the same day, Troopers arrested him.

Ramirez-Lopez was then jailed in Allegany County on $10,000 bail.