why does my car stall on 2003 Mazda Protege5

when slowing down and depressing the clutch my car stalls and i have to restart it again. i sometimes will have to do this a few times. sometimes the lights will go dim and the car won't start again until i let it sit for about 10 minutes

Asked by for the 2003 Mazda Protege5