After retirement from the Navy, Alam joined at foreign ministry at Maritime Affairs unit on a contractual basis in 2009.
Bangladesh filed cases against India and Myanmar in the international court over maritime issues in the same year.
[6] Alam performed the duties of deputy agent and headed the legal team in the "Dispute concerning the delimitation of the maritime boundary between Bangladesh and Myanmar" and the "Bay of Bengal Maritime Boundary Arbitration between Bangladesh and India" in the Peace Palace in The Hague.
He was also head of the Bangladesh continental shelf technical team, entrusted with preparations, documentation, the carrying out of a seismic survey in the Bay of Bengal; final submission and presentation to the Commission on the limits of the continentals shelf of the United Nations.
[10] The foreign ministry awarded Alam with the Bangabandhu Medal for Diplomatic Excellence 2020 for his significant role in the peaceful solution to maritime disputes with neighbouring country Myanmar and India.