 , there were 44 students in Maroggia who came from another municipality, while 62 residents attended schools outside the municipality.Maroggia is served by the Maroggia-Melano station, situated on the border with the adjoining municipality of Melano, which is on the Gotthard railway just to the south of the Maroggia Tunnel.The A2 motorway, which links Lugano and the north of Switzerland with Chiasso and Italy, passes through Maroggia, with the motorway's San Nicolao Tunnel on the municipality's northern border.