The relationship between pressure and volume was first noted by Richard Towneley and Henry Power in the 17th century. Robert Boyle confirmed their discovery through experiments and published the results. According to Robert Gunther and other authorities, it was Boyles assistant, Robert Hooke, who built the experimental apparatus.  Boyles law is based on experiments with air, which he considered to be a fluid of particles at rest in between small invisible springs. Boyle may have begun experimenting with gases due to an interest in air as an essential element of life; for example, he published works on the growth of plants without air. Boyle used a closed J-shaped tube and after pouring mercury from one side he forced the air on the other side to contract under the pressure of mercury. After repeating the experiment several times and using different amounts of mercury he found that under controlled conditions, the pressure of a gas is inversely proportional to the volume occupied by it. 
The French physicist Edme Mariotte (1620–1684) discovered the same law independently of Boyle in 1679, after Boyle had published it in 1662. Mariotte did, however, discover that air volume changes with temperature. Thus this law is sometimes referred to as Mariotte's law or the Boyle–Mariotte law. Later, in 1687 in the , Newton showed mathematically that in an elastic fluid consisting of particles at rest, between which are repulsive forces inversely proportional to their distance, the density would be directly proportional to the pressure, but this mathematical treatise does not involve any Mariott temperature dependance and is not the proper physical explanation for the observed relationship. Instead of a static theory, a kinetic theory is needed, which was developed over the next two centuries by Daniel Bernoulli (1738) and more fully by Rudolf Clausius (1857), Maxwell and Boltzmann.
This law was the first physical law to be expressed in the form of an equation describing the dependence of two variable quantities.