so it is referring to the 1st apartment?
The vision, as explained later in the chapter, is what would occur: the coalition of Medes and Persians would conquer the Babylonian Empire, and the Persian Empire would fall to the Greeks (Alexander the Great), out of which came the Hellenic kingdoms of the Diadochi (Alexander's empire was divided among his generals after his death). The two most important of these were the Ptolemies who ruled Egypt, and the Seleucids who ruled Syria. The "king of the north" mentioned in Daniel refers to the Seleucids, while the "king of the south" the Ptolemies, a reference the Syrian Wars which were fought between these two Hellenic kingdoms, with Judea caught in the middle.
Judea was under the control of the Ptolemies from Egypt, who basically left the Jews alone to conduct their own affairs; however when the new Seleucid ruler, Antiochus IV took the throne, his campaign against Ptolemaic Egypt resulted in the conquest and capture of Judea. Antiochus tried to force the Jews to become Hellenized, and so he forbade circumcision, forbade resting on the Sabbath, and then the greatest offense was the desecration of the Temple, the "abomination that causes desolation" or "the desolating sacrilege". This occurred when Antiochus had a pig sacrificed in the Holy of Holies in honor of Zeus.
This desecration of the Holy Place or Sanctuary, the Temple as a whole really, would last a certain amount of time until it would be restored, rededicated to God. The restoration of the Temple is celebrated every year by Jews all around the world as the eight-day feast of Hannukkah, the "Festival of Lights" which remembers the miracle of when the oil of the menorah kept burning for eight nights even though there was only enough oil for one night. This was during the Maccabean Revolt, led by Judas Maccabeus, which succeeded in overthrowing the Seleucid yoke and restoring Judea to an independent monarchy under the Hasmonean kings.
The Maccabean period ended with the conquest of the Romans under Julius' Caesar's general Pompeii, the Hasmoneans were overthrown and the Romans instated the Idumean (The Idumeans, aka the Edomites, were converted to Judaism during the Maccabean period) Herod the Great, with help from the Romans, took the Judean throne and under Herod Judea became a client kingdom (a puppet state) of the Roman Republic (which would not long after become the Roman Empire under Caesar's adopted son Octavian, who took on the regnal name of Caesar Augustus).
Jesus was born during the last couple of years of Herod the Great's reign (c. 4-2 BC), and His ministry took place under Augustus' successor, Tiberius who instated Pontius Pilate as governor of Judea.
Jesus then predicted the destruction of the Temple that would occur during the First Jewish-Roman War, (70 AD). With the death of the last Herodian, Herod Agrippa II (92 AD) the dynasty came to an end, and Judea was incorporated fully as a province of the Roman Empire, and after the Second Jewish-Roman War resulted in the banishment of the Jews from Jerusalem, the erecting of a temple dedicated to Jupiter Capitolinus on the Temple Mount, and renaming the city to Aelia Capitolina, a Roman colony.
This is probably more information than necessary, but it may be helpful, or at least interesting to understand the historical context of all these things.
-CryptoLutheran