Plaque forms when bacteria in the mouth combine with sugary or starchy foods. These bacteria produce acids that attack tooth enamel, leading to the buildup of plaque. Regular oral hygiene practices, such as brushing and flossing, are essential in removing plaque and preventing dental problems.