Catherine Pugh, the former mayor of Baltimore, was sentenced to three years in prison on Thursday after pleading guilty to federal crimes related to sales of a children’s book series she wrote.

U.S. District Judge Deborah K. Chasanow also ordered Ms. Pugh, a Democrat, to pay more than $400,000 in restitution and to forfeit nearly $700,000. She faces three years of supervised released once she completes her prison sentence.

“The defendant’s scheme to cheat the taxpayers of Baltimore was as bold as it was brazen, and today’s sentence shows that the punishment for those actions is swift and severe,” said Alfred Watson, assistant special agent in charge of the F.B.I.’s Baltimore field office.

In a video that her lawyers submitted to the judge late Wednesday, Ms. Pugh said she accepted full responsibility for her actions. “I’m so sorry,” she said. “I messed up. I really messed up.”