Bex is a municipality in the canton of Vaud, Switzerland, located in the district of Aigle. It is a few kilometers south of its sister town municipality of Aigle.