Dr Peden was among three candidates considered for the bishop's post
A Scottish Anglican priest has failed to become the first female bishop of a major UK church.
The Reverend Canon Dr Alison Peden had been on a shortlist of three for the role of Bishop of Glasgow & Galloway in the Scottish Episcopal Church.
Dr Gregor Duncan, 59, was the successful candidate, beating Dr Peden, 57, and the Venerable Dr John Applegate, 53.
An electoral synod of clergy and lay church members made the decision.
Dr Peden, who is married with three children, is rector of Holy Trinity Church in Stirling, chaplain of Forth Valley College, Stirling, and canon of St Ninian's Cathedral in Perth.
Dr Duncan is rector of St Ninian's Church, Pollokshields, Glasgow, and dean of the Diocese of Glasgow & Galloway. Dr Applegate is an academic.
Commenting on his appointment, Dr Duncan said: "I am deeply honoured to be given this responsibility by the electors of the diocese and am committed wholly to this new office."
The Scottish Episcopal Church is the third largest Christian Church in Scotland with about 39,000 members.
It has allowed women to become bishops since 2003 but Dr Peden was the first to be shortlisted.
The electoral synod was chaired by the Most Rev David Chillingworth, Bishop of St Andrews, Dunkeld & Dunblane and Primus of the Scottish Episcopal Church.
He said: "I am delighted to welcome Dean Gregor Duncan as the next bishop of Glasgow and Galloway.
"He has faithfully served the Scottish Episcopal Church and the clergy and people of Glasgow and Galloway for many years.
"He is widely respected and admired for his faithful pastoral care and the strength of his spirituality."
The Church of England is debating whether to permit women bishops. The Church in Wales voted against it in April 2008.
The Church of Ireland allows the ordination of female bishops but no women have been appointed.
The new appointment follows the retirement last year of the Rt Rev Dr Idris Jones, who had served the diocese as Bishop for 11 years.