More:
"In many areas where royal justice was insufficient, church courts assumed jurisdiction. By the 14th century, as the administration of royal justice increased, controversy between the two powers also heightened. The secular authorities found ways to diminish the powers of the ecclesiastical courts. One was through appeal by writ of error in the secular courts. Then, in more subtle ways, ecclesiastical jurisdiction was limited to spiritual matters. The civil contract of marriage was separated from the sacrament. Other contracts and wills were brought into the secular sphere. By the 16th century on the Continent, the ecclesiastical courts had largely ceased to have any secular functions. Nonetheless, vestiges remained. In Catholic parts of
Germany, for example, marriage and divorce remained within the jurisdiction of the ecclesiastical courts until the German Civil Code came into force in 1900."
http://www.britannica.com/topic/ecclesiastical-court