Jefferson and Madison were responding to regional & local practices where religious groups with political prominence were enacting laws that persecuted other religious groups. The wall of separation between church and state was still under construction.