Philip V was initially successful in the dispute with Philip I about Zweibrücken-Bitsch. However, he introduced the Lutheran confession in his newly gained territories in 1572. This made the powerful and Catholic Duke of Lorraine unhappy. The Duke terminated the fief and in July 1572 Lorraine troops occupied the county. Since Philip V's army was no match for Lorraine, he took his case to the Imperial Chamber Court in Speyer. During the trial, Lorraine argued that, firstly, a significant part of the territory of Zweibrücken-Bitsch had been obtained in an exchange with Lorraine in 1302 and, secondly, the Counts of Leiningen had sold their hereditary claims to Lorraine in 1573. In 1604, Hanau-Lichtenberg and Lorraine decided to settle out of court. In a treaty signed in 1606, it was agreed that Bitsch would revert to Lorraine and Hanau-Lichtenberg would retain Lemberg. This was reasonable, as it corresponded approximately to the religious realities of the territories. Thus, Pirmasens was part of County of Hanau-Lichtenberg.