Media playback is unsupported on your device Media caption Almost two-thirds of people living in Scotland see themselves as "Scottish only"

Most people living in Scotland describe their national identity as being "Scottish only", according to the latest census figures.

Data released from the 2011 census showed 62% described themselves as "Scottish only", while 18% said they were "Scottish and British".

The results also showed Scotland was becoming more ethnically diverse.

In 2011, 4% of Scotland's population was from ethnic minority groups, up from 2% in 2001.

The 2011 census was the first to include a question on national identity.

Voters living in Scotland will take part in a referendum on independence on 18 September 2014. It will ask the single yes/no question: "Should Scotland be an independent country?".

In total, 83% of the country's population felt some Scottish identity, according to the census.

In Wales in 2011, the census recorded 66% of the population as considering themselves either Welsh only or in combination with another identity.

In England the equivalent figure was 70% and in Northern Ireland 29% thought themselves as being Northern Irish.

In Scotland, 2% said they felt English only, and another 2% felt they had some other combination of UK identities excluding Scottish.

The census showed the proportion of the Scottish population born in Scotland was 83%, with 9% born in England, 0.7% in Northern Ireland and 0.3% in Wales.

Ethnic minorities

Of those not born in the UK, 15% were born in Poland, 6% in India and a further 6% in the Republic of Ireland.

The figures indicated that most Scots from ethnic minorities were Asian, making up 3% of the Scottish population.

People from ethnic minorities made up 12% of the population in Glasgow, 8% of the population in Edinburgh and Aberdeen, and 6% of the population in Dundee.

The ethnic group "white Polish" was recorded by 1.2% of the population.

A total of 54% of the population stated their religion as Christian. That was a fall of 11% from 2001.

There was an increase of 9% in those saying they had no religion - a total of 37%.

Within the Christian denominations, 32% said they belonged to the Church of Scotland - a decline of 10%.

Civil partnerships

The proportion stating they were Roman Catholic remained steady at 16%.

Muslims were recorded as 1.4% of the population, with Buddhists, Hindus and Sikhs together making up 0.7%.

There was a slight decline in the number of Jewish people to just under 6,000.

The proportion of adults in Scotland who are married was 45%. This was 5% lower than in 2001.

There was a 5% increase in the number of adults who have never married to 35%.

There were 7,000 people, 0.2% of adults, who said they were in a registered same-sex civil partnership.

Registrar General for Scotland Tim Ellis said: "These latest results paint a detailed picture of Scottish society and it's a more multi-cultural picture than we have seen before.

"There is more ethnic and religious diversity. We have more people living in all areas of Scotland who were born outside of the UK than ever before and we are using an increasing number of languages."