Mohammed Shahabuddin was sworn in yesterday as the 22nd president of Bangladesh in a ceremony at the Bangabhaban.