The Qur'an requires Muslims to fast during the month of Ramadan from sunrise to sunset.
However, there are exceptions to this. One of them is that people who are ill or have medical conditions do not have to fast. This includes people with diabetes. To find out more about this, you can speak to your Imam.