Carroll O'Connor was creating for ABC called "Justice For All", with O'Connor playing Archie Justice, a lovable yet controversial bigot. After three pilots done between 1968 and 1970, a network change to CBS, and the last name of the character changed to Bunker, the new sitcom was renamed "All in the Family". The show was based on the BBC's "Till Death Us Do Part", with Bunker based on Alf Garnett, albeit somewhat less abrasive than the original. O'Connor's Queens background and New York accent is said to have influenced Lear to set the show in Queens. Wanting a well-known actor to play
Archie Bunker II, and by the 1970s he was a foreman. A Protestant, Archie seldom attends church, despite professing strong Christian views. The original pilot mentions that in the 22 years Archie and Edith were married, Archie had only attended church seven times (including their wedding day) and that Archie had walked out of the sermon the most recent time, disgusted with the preacher's message (which he perceived as leftist). Archie's religiosity often translates into knee-jerk opposition to atheism or agnosticism (which Mike and Gloria variously espoused), Catholicism (despite Carroll O'Connor being a devout Catholic), and, until late in the series, Judaism.