A family from Germany has been legally reunited after six years following a court decision.

Dirk and Petra Wunderlich have been granted custody of their minor children once again, CBN News reports.

Darmstadt's family court ruled in favour of reuniting the family only a few months after the family's appeal was ruled against by the European Court of Human Rights.

In 2013, the couple's children were removed from them because of the decision of the family to homeschool. In Germany, it is illegal to homeschool children, and they must be sent to school outside the home.

The judge responsible for the decision ruling in the Wunderlich's favour was a replacement for the judge originally instrumental in the removal of the family's children in 2013 who was replaced on grounds of bias.

In an interview with CBN, Robert Clarke, Director of European Advocacy for ADF International and lead council for the family stated, "The right of parents to direct the education of their children is a fundamental right, protected in international law.

"We are pleased to see that the German court respected this right and acknowledged that the Wunderlich children are doing well. As we wait for referral to the Grand Chamber of the European Court of Human Rights, we hope that there too, the rights of the Wunderlich family will be safeguarded."

The ruling of the court found that the Wunderlich's two youngest children will be able to stay with their parents after hearing from the children their own desire to be homeschooled. 

"The knowledge level of the children was not alarming and that the children were not being kept from school against their will," the European Court of Human Rights ruled.

In a letter to the judge, one of the children wrote that they are not prepared to attend public school to satisfy their educational requirements "simply because German judges cannot imagine for me to be educated in a different way.

"I will not tolerate being forcefully taken and locked up," they wrote.

The Wunderlich children were kept in custody to prevent the family from fleeing Germany.

"I just want to live and learn in peace with my family without the constant fear of being torn apart like in 2009 and in 2013. I went to a public school for a year and definitely did not enjoy it," wrote a second Wunderlich child.

The family still awaits a pending appeal before the Grand Chamber of the European Court of Human Rights.