Question: When was Macedonia annexed as a province by Rome?
About the article "Greece", section "Hellenistic and Roman periods (323 BC–4th century AD)".

Candidate passages:
Macedonia remained an important and powerful kingdom until the Battle of Pydna (June 22, 168 BC), in which the Roman general Aemilius Paulus defeated King Perseus of Macedon, ending the reign of the Antigonid dynasty over Macedonia.
For a brief period a Macedonian republic called the “Koinon of the Macedonians” was established.
It was divided into four administrative districts.
That period ended in 148 BC, when Macedonia was fully annexed by the Romans.
The northern boundary at that time ended at Lake Ohrid and Bylazora, a Paeonian city near the modern city of Veles.
Strabo, writing in the first century AD places the border of Macedonia on that part at Lychnidos, Byzantine Achris and presently Ochrid.
Therefore ancient Macedonia did not significantly extend beyond its current borders (in Greece).
This is stressed by 370 academics in their letter to US president Barack Obama.
To the east, Macedonia ended according to Strabo at the river Strymon, although he mentions that other writers placed Macedonia’s border with Thrace at the river Nestos, which is also the present geographical boundary between the two administrative districts of Greece.
Subsequently the provinces of Epirus and Thessaly as well as other regions to the north were incorporated into a new Provincia Macedonia, but in 297 AD under a Diocletian reform many of these regions were removed and two new provinces were created: Macedonia Prima and Macedonia Salutaris (from 479-482 AD Macedonia Secunda).
Macedonia Prima coincided approximately with Strabo’s definition of Macedonia and with the modern administrative district of Greece and had Thessalonica as its capital, while Macedonia Secunda had the Paeonian city of Stobi (near Gradsko) as its capital.
This subdivision is mentioned in Hierocles’ Synecdemon (527-528) and remained through the reign of emperor Justinian.
The Slavic, Avar, Bulgarian and Magyar invasions in the 6-7th centuries devastated both provinces with only parts of Macedonia Prima in the coastal areas and nearer Thrace remaining in Byzantine hands, while most of the hinterland was disputed between the Byzantium and Bulgaria.
The Macedonian regions under Byzantine control passed under the tourma of Macedonia to the province of Thrace.
A new system of administration came into place in 789-802 AD, following the Byzantine empire’s recovery from these invasions.
The new system was based on administrative divisions called Themata.
The region of Macedonia Prima (the territory of modern Greek administrative district of Macedonia) was divided between the Thema of Thessalonica and the Thema of Strymon, so that only the region of the area from Nestos eastwards continued to carry the name Macedonia, referred to as the Thema of Macedonia or the Thema of “Macedonia in Thrace”.
The Thema of Macedonia in Thrace had its capital in Adrianople. 
In Bulgaria-annexed Yugoslav Macedonia, the Ohrana was organized by the occupation authority as auxiliary security forces. 
Macedonia Prima ("first Macedonia") was a province encompassing most of the kingdom of Macedonia, coinciding with most of the modern Greek region of Macedonia, and had Thessalonica as its capital. 
As a result of Eumenes's intrigues Rome declared war on Macedon in 171 BC, bringing 100,000 troops into Greece.
Macedon was no match for this army, and Perseus was unable to rally the other Greek states to his aid.
Poor generalship by the Romans enabled him to hold out for three years, but in 168 BC the Romans sent Lucius Aemilius Paullus to Greece, and at Pydna the Macedonians were crushingly defeated.
Perseus was captured and taken to Rome, the Macedonian kingdom was broken up into four smaller states, and all the Greek cities who aided her, even rhetorically, were punished.
Even Rome's allies Rhodes and Pergamum effectively lost their independence.
Under the leadership of an adventurer called Andriscus, Macedon rebelled against Roman rule in 149 BC: as a result it was directly annexed the following year and became a Roman province, the first of the Greek states to suffer this fate.
Rome now demanded that the Achaean League, the last stronghold of Greek independence, be dissolved.
The Achaeans refused and, feeling that they might as well die fighting, declared war on Rome.
Most of the Greek cities rallied to the Achaeans' side, even slaves were freed to fight for Greek independence.
The Roman consul Lucius Mummius advanced from Macedonia and defeated the Greeks at Corinth, which was razed to the ground.
In 146 BC, the Greek peninsula, though not the islands, became a Roman protectorate.
Roman taxes were imposed, except in Athens and Sparta, and all the cities had to accept rule by Rome's local allies.
In 133 BC, the last king of Pergamum died and left his kingdom to Rome: this brought most of the Aegean peninsula under direct Roman rule as part of the province of Asia.
The final downfall of Greece came in 88 BC, when King Mithridates of Pontus rebelled against Rome, and massacred up to 100,000 Romans and Roman allies across Asia Minor.
Although Mithridates was not Greek, many Greek cities, including Athens, overthrew their Roman puppet rulers and joined him.
When he was driven out of Greece by the Roman general Lucius Cornelius Sulla, Roman vengeance fell upon Greece again, and the Greek cities never recovered.
Mithridates was finally defeated by Gnaeus Pompeius Magnus (Pompey the Great) in 65 BC .
Further ruin was brought to Greece by the Roman civil wars, which were partly fought in Greece.
Finally, in 27 BC, Augustus directly annexed Greece to the new Roman Empire as the province of Achaea.
The struggles with Rome had left certain areas of Greece depopulated and demoralised.
Nevertheless, Roman rule at least brought an end to warfare, and cities such as Athens, Corinth, Thessaloniki and Patras soon recovered their prosperity. 
As a result of Eumenes's intrigues Rome declared war on Macedon in 171 BC, bringing 100,000 troops into Greece.
Macedon was no match for this army, and Perseus was unable to rally the other Greek states to his aid.
Poor generalship by the Romans enabled him to hold out for three years, but in 168 BC the Romans sent Lucius Aemilius Paullus to Greece, and at Pydna the Macedonians were crushingly defeated.
Perseus was captured and taken to Rome, the Macedonian kingdom was broken up into four smaller states, and all the Greek cities who aided her, even rhetorically, were punished.
Even Rome's allies Rhodes and Pergamum effectively lost their independence.
Under the leadership of an adventurer called Andriscus, Macedon rebelled against Roman rule in 149 BC: as a result it was directly annexed the following year and became a Roman province, the first of the Greek states to suffer this fate.
Rome now demanded that the Achaean League, the last stronghold of Greek independence, be dissolved.
The Achaeans refused and, feeling that they might as well die fighting, declared war on Rome.
Most of the Greek cities rallied to the Achaeans' side, even slaves were freed to fight for Greek independence.
The Roman consul Lucius Mummius advanced from Macedonia and defeated the Greeks at Corinth, which was razed to the ground.
In 146 BC, the Greek peninsula, though not the islands, became a Roman protectorate.
Roman taxes were imposed, except in Athens and Sparta, and all the cities had to accept rule by Rome's local allies.
In 133 BC, the last king of Pergamum died and left his kingdom to Rome: this brought most of the Aegean peninsula under direct Roman rule as part of the province of Asia.
The final downfall of Greece came in 88 BC, when King Mithridates of Pontus rebelled against Rome, and massacred up to 100,000 Romans and Roman allies across Asia Minor.
Although Mithridates was not Greek, many Greek cities, including Athens, overthrew their Roman puppet rulers and joined him.
When he was driven out of Greece by the Roman general Lucius Cornelius Sulla, Roman vengeance fell upon Greece again, and the Greek cities never recovered.
Mithridates was finally defeated by Gnaeus Pompeius Magnus (Pompey the Great) in 65 BC.
Further ruin was brought to Greece by the Roman civil wars, which were partly fought in Greece.
Finally, in 27 BC, Augustus directly annexed Greece to the new Roman Empire as the province of Achaea.
The struggles with Rome had left Greece depopulated and demoralised.
Nevertheless, Roman rule at least brought an end to warfare, and cities such as Athens, Corinth, Thessaloniki and Patras soon recovered their prosperity.