The act came about because
Anthony Ashley-Cooper, 1st Earl of Shaftesbury encouraged his friends in
the Commons to introduce the bill where it passed and was then sent up to the
House of Lords. Shaftesbury was the leading
Exclusionist—those who wanted to exclude Charles II's brother
James, Duke of York from the succession—and the bill was a part of that struggle as they believed James would rule arbitrarily. The Lords decided to add many amendments to the bill in an attempt to limit it, designed to protect the Lords from arrest by members of the Commons. However, the Commons had no choice but to pass the Bill with the Lords' amendments because they learned that the King would soon end the current
parliamentary session and they desired to see the act enacted, even with limitations. When a parliamentary house votes on legislation, each side—those voting for and against—appoints a
teller who stands on each side of a door through which those Lords who vote "aye" re-enter the House (the "nays" remain seated). One teller counts aloud whilst the other teller listens and keeps watch to verify the count. Of the Habeas Corpus Act count,
Gilbert Burnet wrote,Lord Grey and Lord Norris were named to be the tellers: Lord Norris, being a man subject to
vapours, was not at all times attentive to what he was doing: so, a very fat lord coming in, Lord Grey counted him as ten, as a jest at first: but seeing Lord Norris had not observed it, he went on with this misreckoning of ten: so it was reported that they that were for the Bill were in the majority, though indeed it went for the other side: and by this means the Bill passed.In the words of historian Helen Nutting, this miscount story is "highly improbable". According to Nutting, had the vote been miscounted, King James II would almost certainly have "taken advantage of a real miscount to overturn the act", since he opposed it. King Charles II assented to the act in 1679 since, Nutting explains, "it was no longer controversial". The act is now stored in the
Parliamentary Archives. == Application in New Zealand ==