Most ancient civilizations had some sort of calendar, some very good ones. The early Romans had a calendar as well. But in Rome, politics began to affect the calendar in a very negative way.
During the Roman Republic, there were no emperors. Leaders were elected to office. If the priests did not like someone who had been elected, the priests removed months from the calendar, to shorten the year. Since people could only rule for a certain number of years, that shortened their term of office. But, if the priests liked the person in power, they added months to the calendar, so their favorite leaders had longer in office. It was a crazy system and pretty soon the calendar was a mess.
When Julius Caesar came to power, he decided to throw out the old calendar and invent a new one. "His" calendar was remarkably like the ancient Egyptian calendar, but of course, like all things Roman, no credit was given to an invention by another civilization. The new calendar was Caesar's invention. The new calendar had 365 days each year for three years, and 366 days on the fourth year, just like the ancient Egyptian calendar and just like our calendar today. Julius Caesar named a month after himself, the month of July.
If you've ever wondered why February is the shortest month in our calendar, it all goes back to politics in the Roman Empire. When Augustus Caesar, Julius Caesar's adopted son, took over the government of ancient Rome, he called himself emperor (the first emperor of ancient Rome). He wanted a month named after himself, just as Julius Caesar, had done. Agustus took the month after July and renamed his month August. But August only had 30 days, not 31. An emperor could not have a short month. To fix that, the astronomers took a day from February and added it to August. That's why February is the shortest month of the year still today!