The woman, who is now 37-years-old, had given birth to the girl in secret on Christmas Eve in 2013 in the bathroom of the apartment in eastern Madrid that she shared with her parents, three brothers and two other children.
She then cut the umbilical cord of her newborn girl, wrapped her in a pair of jeans and threw her out of a kitchen window into an interior patio from a height of 1.70 metres (5.7 feet).
The woman's mother found the baby girl, whose heart and breathing had stopped. The child, who was also suffering from hypothermia, was taken to hospital where she spent 74 days.
A Madrid court ruled on Wednesday.that the woman had intended to kill her newborn when she threw her out the window and found her guilty of attempted murder, sentencing her to four year in jail.
The court also ordered her to pay €63,074 ($69,053) in compensation to her daughter.
The girl, who suffers from poor muscle tone as a result of her fall, was given to a foster family and put up for adoption.