Three people from Pakistan have been arrested in Spain, accused of promoting Islamist militancy through social media, the Interior Ministry said.

The three shared a home in the northeast city of Lleida from where they are accused of distributing content justifying Islamic State executions and supporting the Taliban and Pakistani groups, the ministry said on July 1.

Authorities have not yet determined if they were part of a larger network, it added.

Spain has now detained 29 people suspected of belonging to or acting for Islamist militant groups since the beginning of the year.