In Malaysia, a company secretary is primarily responsible for ensuring a company complies with all legal and regulatory requirements by maintaining accurate company records, advising the board of directors on corporate governance matters, managing annual general meetings, and facilitating communication between shareholders and the board, all while adhering to the Companies Act guidelines; essentially acting as the official liaison for the company to maintain legal compliance and proper corporate structure.