A Python raw string is created by prefixing a string literal with 'r' or 'R'. It treats backslash (\) as a literal character. This is useful when you want to have a string that contains backslash and do not want it to be treated as an escape character.