A 37-year-old illegal immigrant living in McAllen, Texas was arrested this week after local authorities discovered he had three wives.

Authorities started investigating Oscar Gonzalez Correa last June, when his second wife, a woman named Lucia, filed a complaint.

Lucia said she and Correa married in 2004 in Nuevo Leon, Mexico, but they split up after moving to the U.S.

Oscar Gonzalez Correa, 37 (pictured), was arrested in McAllen, Texas on Tuesday on a charge of third-degree bigamy

But when she went to the Hidalgo County Courthouse in December 2015 to get a divorce, she found that her husband had already remarried.

Soon after that, Lucia also found out that Correa was already married when they got hitched.

Correa married his first wife in 1996, also in Neuvo Leon.

The Edinburg Police Department investigated Lucia's claims and compiled enough evidence to arrest Correa on Tuesday.

After arresting him, they also found out that Correa is in the country illegally.

Correa was booked into the Hidalgo County jail at 7:31pm on Tuesday. He was released after posting bail 5.37am the next day.