The founder of a Texas megachurch who resigned last year after a woman in Oklahoma accused the pastor of sexually abusing her in the 1980s pleaded guilty Thursday to five counts of lewd and indecent acts with a child, authorities said.

Robert Preston Morris, 64, entered the pleas before a judge in Oklahoma’s Osage County as part of a plea agreement, according to the state attorney general’s office.

The abuse began in 1982 when the victim was 12 and Morris was a traveling evangelist staying in Hominy, Oklahoma, with her family, according to the statement by Oklahoma Attorney General Gentner Drummond. The abuse continued over the next four years, the statement said.

Morris was the senior pastor of Gateway Church in the Dallas-Fort Worth suburb of Southlake, where he led one of the nation's largest megachurches until his resignation. He was indicted earlier this year by an Oklahoma grand jury. Under the plea agreement, Morris received a 10-year suspended sentence with the first six months to be served in the Osage County Jail.

Morris was handcuffed and wearing a suit as he was escorted out of court on Thursday by two sheriff's deputies.

Gateway Church was founded by Morris in 2000. He has been politically active and formerly served on President Donald Trump’s evangelical advisory board. The church hosted Trump on its Dallas campus in 2020 for a discussion on race relations and the economy.

Gateway Church declined to comment Thursday.