The SUBSTRING function in SQL is a character function that returns a portion of a string. You can specify the starting position and length of the substring.