user: Q: Goals from Lukas Schubert, Ronan Curtis, Aaron McEneff and Rory Holden clinched the victory to keep the Candystripes in fifth place.
Schubert headed in the first in the 32nd minute and Curtis drilled in the second on 62 minutes.
McEneff made it three with a penalty before Rory Holden came on as a sub to score his first goal for City.
Derry are now one point behind Shamrock Rovers and two behind third-placed Bray Wanderers.
Sunday's game came just three days after Derry's 10-2 aggregate defeat by Danish side FC Midtjylland in the Europa League.
Despite that experience, Derry are determined to get back into European football next year and this win over a ragged Rovers keeps them right in the mix.
Derry were on top for most of the match against Sligo who have not won on the road in the league this year.
Although boosted by a home win over Shamrock Rovers, Gerard Lyttle's men failed to make an impression at Buncrana.
Schubert, whose only goal of the season had been on the first day of the season, nodded in the opening goal after the ball spun up in his favour.
Sligo keeper Micheal Schlingermann made a string of fine saves to keep Sligo in the match but there was nothing he could do when the ball fell for Curtis who chested down to drill in his sixth goal of the season.
McEneff netted a 74th-minute penalty after Ben Doherty was fouled by defender Kyle Callan-McFadden.
Then 19-year-old Holden beat three players and finished superbly on 84 for his first goal in Candystripe colours.

A: Derry City secured their first win for over a month when they easily saw off Sligo Rovers at Maginn Park.


Q: Six fire appliances were sent to the McKechnie Jess factory in Port Glasgow Road when the alarm was raised at 03:22.
A spokeswoman for the Scottish Fire and Rescue Service said about 35 firefighters were tackling the blaze, and there were no casualties.
Diversions were in place, though HGVs were advised not to use these.

A: The A8 is closed in Greenock due to a factory fire which broke out in the early hours of the morning.


Q: A 1,000 m (3,200 ft) exclusion zone was put in place at West Beach at Burry Port after the device was spotted on Monday morning.
Members of the Royal Navy bomb disposal team were called to deal with the mine, which was found by council rangers.
Dyfed-Powys Police tweeted on Monday evening to say the device had been blown up and the beach had reopened.

A: A military mine which washed up on a Carmarthenshire beach has been detonated in a controlled explosion.


Q: A poster campaign is being launched to highlight the NHS's zero tolerance policy for attacks on its workers, such as pharmacists, GPs and their staff.
The Welsh government, which is backing the campaign, said people will "feel the full weight of the law".
There have been nearly 200 successful prosecutions since April 2010.
A cross-party group of AMs said in 2009 that aggression against NHS workers in Wales had been tackled with a "lack of urgency".
CCTV was installed at four hospital A&E departments and in five ambulances, while thousands of lone workers were given panic buttons.]
Health Minister Lesley Griffiths said the Welsh government, the NHS, police and the Crown Prosecution Service have also been working together to reduce the risks of violence and aggression against health workers since then.
"In addition to this, significant progress has been made to support staff affected by violence or aggression and to take action against perpetrators," she said.
"In the 18 months since April 2010 we have seen nearly 200 successful prosecutions. This is massive improvement in the number of prosecutions, which in recent years were in single figures."
Pharmacists and GP surgeries are being encouraged to display the posters in prominent areas of their premises to remind people using their services that if they act in an aggressive way, they will be prosecuted.
Ms Griffiths said health staff were expecting the final two weekends in the run-up to Christmas to be busy.
"It has been said we'll experience two Black Fridays this year. I urge people to drink responsibly," she said.
"If you do need to call the emergency services or visit an A&E department, please remember that any aggression towards the hard-working, dedicated staff will be met with stiff penalties."
Dr Charles Allanby, a GP in Cardiff, has been speaking out about violence in the NHS after he was randomly attacked by a stranger in his surgery.
The assault 18 years ago has stayed with him and he believes a zero-tolerance to violence policy is necessary.
"It was a cold November night and the man came into the waiting room of the surgery and said he wanted to see a doctor. He wasn't a patient at the surgery so we didn't know who he was," he said, recalling the attack.
"I went to the waiting room to see him, he got up off the seat, kicked the radiator and ran towards me in an aggressive way.
"I ran to my office but he got through the office door and pushed me to the floor and jumped on top of me and started kicking and punching me for no reason.
"He then got up and picked up my computer monitor - which in those days was huge - and threw it at me and it shattered on the floor."
The violent patient was eventually arrested and tried in court, Dr Allanby said, but never paid his Â£200 fine.
"These days we do have things in place to try to minimise the risk that doctors and other workers face," he said.
"For example we do risk assessments and have panic buttons in all our rooms."
Dr Allanby is the primary care member of the Welsh government's All Wales Violence and Aggression working party and says the issue of violence in the NHS is being taken seriously.
"Also I think the fact the police and the CPS are now more keen to prosecute people and the courts are handing out custodial sentences," he added.
"These incidents don't just affect doctors and other workers - they are very intimidating for other patients too."

A:

assistant: Aggressive and abusive patients who target doctors, nurses and health care workers are being warned that their behaviour will not be tolerated.