Answer
Ayub Khan served as the Defence and Home Minister of Pakistan before assuming the presidency. This pivotal role gave him significant experience and influence in the country's military and internal affairs. His expertise in these areas positioned him well to lead Pakistan during a period of political and economic challenges.