He is the State Committee Member of PN of Perlis and Division Treasurer of PAS of Arau.
In the 2022 Perlis state election, the ruling Barisan Nasional (BN) suffered from huge defeat and wipeout in the assembly as none of its candidates won a state seat in the elections after losing all the 10 seats it previously held to PN.
On 25 November 2022, Razali was appointed as the Perlis State EXCO Member in charge of Agriculture, Agro-based Industries, Rural Development, Poverty Eradication, Plantation Industries and Commodities by Menteri Besar Mohd Shukri.
He won the seat and was elected into the Perlis State Legislative Assembly as the Simpang Empat MLA after defeating defending MLA Nurulhisham Yaakob of BN, Amran Darus of Pakatan Harapan (PH), independent candidate Ammar Hassan, Izhar Sudin of the Homeland Fighters Party (PEJUANG) and Hakim Saad of the Heritage Party (WARISAN) by the majority of 4,008 votes.
[3] Besides his political positions, Razali is also the Simpang Empat E1 unit chief farmer and a liquefied petroleum gas entrepreneur.