In CSS, the text-justify property is used to set the text-align property to justify. It expands the words to fill the entire line. When the text-align property is set to the justify value, the text-justify property in CSS is used to set the text's justification method.