The first church here was built in 674. In the 12th century, the parish council created an important leprosarium that treated Jean Bodel, a French poet.
On 21 December 1922, a large treasure was discovered dating from the Roman era. Known as the Beaurains Treasure, much was squandered and the little that remains is now at Arras. However, a silver candelabra, gold coins and some jewellery from the treasure are also in the British Museum. The commune was all but destroyed during World War I.