It was later the scene of the Battle of Cirencester, this time between the Mercian king Penda and the West Saxon kings Cynegils and Cwichelm in 628. The minster church of Cirencester, founded in the 9th or 10th century, was probably a royal foundation. It was made over to Augustinian canons in the 12th century and replaced by the great abbey church. At the Norman Conquest the royal manor of Cirencester was granted to the Earl of Hereford, William Fitz-Osbern, but by 1075 it had reverted to the Crown. The manor was granted to Cirencester Abbey, founded by Henry I in 1117, and following half a century of building work during which the minster church was demolished, the great abbey church was finally dedicated in 1176. The manor was granted to the Abbey in 1189, although a royal charter dated 1133 speaks of burgesses in the town. The struggle of the townsmen to gain the rights and privileges of a borough for Cirencester probably began in the same year, when they were amerced for a false presentment. Four inquisitions during the 13th century supported the abbot's claims, yet the townspeople remained unwavering in their quest for borough status: in 1342, they lodged a Bill of complaint in Chancery. Twenty townspeople were ordered to Westminster, where they declared under oath that successive abbots had bought up many burgage tenements, and made the borough into an appendage of the manor, depriving it of its separate court. They claimed that the royal charter that conferred on the men of Cirencester the liberties of Winchester had been destroyed 50 years earlier, when the abbot had bribed the burgess who held the charter to give it to him, whereupon the abbot had had it burned. In reply, the abbot refuted these claims, and the case passed on to the King's Bench. When ordered to produce the foundation charter of his abbey the abbot refused, apparently because that document would be fatal to his case, and instead played a winning card. In return for a fine of £300, he obtained a new royal charter confirming his privileges and a writ of "supersedeas". Yet the townspeople continued in their fight: in return for their aid to the Crown against the earls of Kent and Salisbury, Henry IV in 1403 gave the townsmen a Guild Merchant, although two inquisitions reiterated the abbot's rights.