When Did the Roman Republic End?

Rome was really the first true Republic even though they had their struggles with corruption and power hungry politicians. No other civilization had a system with a Senate. After Caesar was so successful in battle and marched on Rome in 49 AD they made him Dictator for life.