HMS Edgar was a 72-gun third rate ship of the line of the Royal Navy, built by Baylie of Bristol and launched in 1668. The diarist and naval administrator Samuel Pepys visited the town during its construction, noting that in his opinion, "it will be a fine ship". By 1685 she was carrying 74 guns. In 1700 Edgar underwent a rebuild at Portsmouth Dockyard as a 70-gun ship. She was rebuilt for a second time by Burchett of Rotherhithe as a 70-gun ship to the 1706 Establishment, relaunching on 31 March 1709.