The Roman era of Greek history began with the Corinthian defeat in the Battle of Corinth in 146 BC. However, before the Achaean War, the Roman Republic had been steadily gaining control of mainland Greece by defeating the Kingdom of Macedon in a series of conflicts known as the Macedonian Wars. The Fourth Macedonian War ended at the Battle of Pydna in 148 BC and defeat of the Macedonian royal pretender Andriscus.