In CSS (Cascading Style Sheets), the margin:auto property is used to center an element horizontally within its containing element. When you apply margin:auto to an element, it sets the left and right margins to automatic, causing the element to be horizontally centered.