founded as a kingdom , rome was ruled by seven roman kings for almost two-hundred-fifty years , before turning into a republic in 509 bc , which then outlawed tyranny and waged wars for the next five hundred years to continue expanding their territory .