The undeclared war began on April 2 1982 when Argentina invaded the British overseas territory.
On June 14 of the same year, as British forces approached its capital Stanley, Argentina surrendered.
In total, 255 British servicemen, 649 Argentinian military personnel, and three civilians died, while many more were wounded.
Some who were deployed to the islands marched in Edinburgh on Saturday (June 18) before a remembrance ceremony was held.
They were joined by veterans from other conflicts, Edinburgh's Lord Provost and Cabinet Secretary Keith Brown.
A parade made its way from Charlotte Square, along George Street, to St Andrews Square.
Take a look through our picture gallery.
. Standard Bearers
Standard Bearers, who joined military personnel, alongside Falklands veterans and members of the wider armed forces community, to remember the 40th anniversary of the end of the conflict, during a parade and service of remembrance in Edinburgh. Photo: Jane Barlow
1. Captain Duncan Ferguson
Captain Duncan Ferguson, aged 82 (right), with his son Captain Angus Ferguson, joined military personnel, alongside other Falklands veterans and members of the wider armed forces community, to remember the 40th anniversary of the end of the conflict, during a parade and service of remembrance in Edinburgh. Photo: Jane Barlow
2. Standard Bearers
Standard Bearers, who joined military personnel, alongside Falklands veterans and members of the wider armed forces community, to remember the 40th anniversary of the end of the conflict, during a parade and service of remembrance in Edinburgh. Photo: Jane Barlow
3. Lord Provost
Lord Provost of the City of Edinburgh Robert Aldridge lays a wreath during a service of remembrance in Edinburgh to commemorate the 40th anniversary of the end of the Falklands conflict. Photo: Jane Barlow
4. Falklands veterans
Falklands veterans and members of the wider armed forces community, remember the 40th anniversary of the end of the conflict, during a parade and service of remembrance in Edinburgh. Photo: Jane Barlow