In the second half of the 18th century, first residences-museums were created in Poland. Old palaces were changed to adapt them for exhibitions purposes, or new buildings were erected with separate museum annexes. First such museums in Poland was established in 1802 by Stanisław Kostka Potocki at Wilanów. The museums at Nieborów, Nieśwież, Puławy, Rogalin, Gołuchów, and Kórnik followed. At first these museums were established as a response to fashion, later national and patriotic issues became prevailing reasons.