Firstly you must know that you will lose fat from all areas of your body an not just your belly.
Now in order to lose fat, you must consume less calories than you burn. You can do that by cutting back on your food intake as well as doing exercises to help burn off the calories.
However, in order to flatten your stomach, you will also have to do a lot of abdominal exercises to tone that area.