During the 5th millennium BC, the Ertebølle people learned pottery from neighbouring tribes in the south, who had begun to cultivate the land and keep animals. They too started to cultivate the land, and by 3000 BC they became part of the megalithic Funnelbeaker culture. During the 4th millennium BC, these Funnelbeaker tribes expanded into Sweden up to Uppland. The Nøstvet and Lihult tribes learnt new technology from the advancing farmers (but not agriculture) and became the Pitted Ware cultures towards the end of the 4th millennium BC. These Pitted Ware tribes halted the advance of the farmers and pushed them south into southwestern Sweden, but some say that the farmers were not killed or chased away, but that they voluntarily joined the Pitted Ware culture and became part of them. At least one settlement appears to be mixed, the Alvastra pile-dwelling.