The girl, called Yara, was found dead in April last year, and a district court found the couple guilty just before Christmas, but the sentence was only announced today.
The court has had to decide whether the man would be sentenced as harshly as the woman. He was the girl's legal guardian, but did not protect her from being beaten by his wife. He made no call to the emergency services, and did not help her to get to the hospital.
During the period that the girl stayed with her uncle, the social services were several times alerted to the fact that things were not right in her home. A few weeks before her death, police faxed a report of concern to the social services, but the fax ended up in a PO box and stayed there.
The girl came to Sweden from Gaza alone in 2013, and went on to live with the couple. Her parents remain abroad.
The woman's lawyer has said she will appeal.