In the courts of Europe , particularly Versailles and Whitehall in the 17th and 18th centuries , a mistress often had great power and influence . In the courts of Europe , particularly Versailles and Whitehall in the 17th and 18th centuries , a mistress often wielded great power and influence .