The Magellanic system (located at a distance of ~ 55 kpc) which comprises of the Large Magellanic Cloud (LMC), the Small Magellanic Cloud (SMC), the connecting Magellanic Bridge (MB), the leading arms and the Magellanic Stream (MS), is one of the nearest examples of an interacting system in the local universe and an excellent template to study galaxy interactions using stellar populations. Based on the revised proper motion estimates from the HST, it is more or less well established that the formation and the evolution of the Magellanic system is mainly driven by the mutual interaction of the Magellanic Clouds. In this talk, I will present some of our work based on stellar populations (using optical and NIR photometric data) to understand the 3D structure and interaction history of the Magellanic Clouds.