A woman who falsely claimed that she was gang raped was sentenced Tuesday to up to three years in prison by a judge in Manhattan.

The woman, Biurny Peguero, 27, pleaded guilty in December to perjury, admitting that she had made up the accusation in 2005 that put a construction worker, William McCaffrey, behind bars for nearly four years. A judge overturned his rape conviction in December, with new DNA evidence playing a role.

“I question myself every day as to how I could have done this,” Ms. Peguero said Tuesday to Justice Charles Solomon of State Supreme Court, adding that she was filled with remorse for sending an innocent man to prison.

Ms. Peguero, of Union City, N.J., who has an infant and a 7-year-old, received a sentence of one to three years in prison.