ABC News June 8, 2018

Gloria Williams, who kidnapped baby and raised her, sentenced to 18 years

WATCH: Gloria Williams, who kidnapped baby and raised her, sentenced to 18 years

The woman who pleaded guilty to kidnapping a baby from a Florida hospital hours after she was born was sentenced Friday to 18 years in prison.

Gloria Williams posed as a nurse and stole Kamiyah Mobley from a Jacksonville hospital in July 1998 before giving the child a different name, Alexis Manigo, and raising her as her own in South Carolina.

Will Dickey/The Florida Times-Union via AP
Gloria Williams enters the courtroom for sentencing, May 3, 2018, at the Duval County Courthouse in Jacksonville, Fla.

Williams, who was arrested in 2017, entered guilty pleas to charges of felony kidnapping and interference earlier this year as part of a plea deal with prosecutors.

At Friday's sentencing, Williams, 52, was given credit for her 511 days of time served.

Will Dickey/Florida Times-Union via Pool
Gloria Williams stands with her attorneys as she is sentenced by Judge Marianne Aho in the kidnapping of newborn Kamiyah Mobley, June 8, 2018 at the Duval County Courthouse in Jacksonville, Fla.
(MORE: Woman who kidnapped infant apologizes to biological parents: 'I know I wronged you, and I'm so sorry') (MORE: Baby abductors, like Gloria Williams, often fit a similar profile) (MORE: Woman who kidnapped baby and raised girl as her own for 18 years pleads guilty)

After the sentencing was announced, Mobley’s birth mother left the courtroom with a smile on her face.

Will Dickey/Florida Times-Union via Pool
Shanara Mobley, birth mother of Kamiyah Mobley, smiles as she leaves the sentencing of Gloria Williams, June 8, 2018 at the Duval County Courthouse in Jacksonville, Fla.

The sentencing "closes a painful chapter for all involved," Mobley's attorney, Justin Bamberg, said in a statement.

"Kamiyah is now processing what it means for the woman she’s known as [her] mother to receive an 18-year prison sentence," he said. "However, she understands Gloria had to be held accountable for her actions. She also understands that her biological parents have the absolute right to view today as a joyous day. We can only ask that everyone respect her privacy, give her time to take things in, and continue to pray for the well-being of each and every person whose life has been touched by this almost 20-year chain of events."

The Florida Times-Union via AP
Kamiyah Mobley, who was raised with the name Alexis Kelly Manigo, sits in the courtroom before the sentencing hearing of Gloria Williams, May 3, 2018 at the Duval County Courthouse in Jacksonville, Fla.

Williams declined to address the media but extends "her appreciation to everyone involved in her defense as well as all of the people who either wrote letters or appeared on her behalf," Williams' attorney, Diana Johnson, said in a statement.

"Though the sentence imposed today was more than we had hoped for, we appreciate the time and attention Judge Aho took to fully consider this matter," Johnson added.

Last month in court Williams apologized to Mobley's birth parents.

"I know I wronged you and I’m so sorry," Williams said. "So many days ... I wanted to pick that child up and say, 'Let’s get in this car and go' -- I just couldn’t."

ABC News' Doug Lantz, Julia Jacobo, Rachel Katz and Amanda Maile contributed to this report.