Built in the late 12th century by King Philip II Augustus as a fortress to defend Paris from Viking raids. It later evolved into a royal palace, serving French monarchs until the 17th century, before becoming the world‑famous museum we know today.