They were forced to end their conflict under the Treaty of Pangor in 1874 after British intervention.
The treaty of Pangor was meant to result in peace.
The British intervention was only to prolong the unrest.