Singapore Prime Minister Lee Hsien Loong took ill on Sunday in the middle of his annual National Day Rally speech because of heat and dehydration, his office said.