A ketogenic diet is a high-fat, moderate-protein and low-carbohydrate diet. When you’re on a ketogenic diet, your body enters a state of ketosis, which is when it uses fat for energy instead of carbs.