By the first half of the fifth century, a group of people known as Huns had settled in Afghanistan. They became powerful. They made Bamiyan as their capital city. They started attacking northwestern parts of India. Skandagupta, an emperor of the Gupta dynasty fought back and kept them away for some years. At last the Huns won and could enter most parts of northern India. With this the Gupta dynasty came to an end. Most of north India became badly affected by this invasion. However, Huns could not go up to the Deccan Plateau and the southern parts of India. These parts remained peaceful. No one knows definitely about the fate of Huns after the end of the sixth century. Some historians believe that they mixed up fully with the Indian people of that time.