At the end of May, 1834, as a result of the Civil War, King Peter IV, assuming the regency in name of his daughter Queen Mary II, disbanded the Royal Police Guard in Lisbon and Porto, creating the "Municipal Guards" of Lisbon and Porto on the basis of similar conditions.