Original: Messing was inclined to take some time off, but the script intrigued her, and she auditioned for the role of Grace Adler, beating out Nicollette Sheridan, who later guest-starred on the show as a romantic rival of Grace's.
Simplified: She auditioned for the role of Grace Adler. She got the part, beating out Nicollette Sheridan.