During the early years of the Middle Ages the community took care of the mentally ill. Hospices, then asylums developed to house them. London's Bethlem asylum—better known as Bedlam—was founded in 1247, making it one of the oldest institutions of its kind. The term "bedlam" became associated with chaos, confusion, and poor treatment, which reflected the general attitude toward mental illness at the time