The process by which individuals learn a second language, including the cognitive and social factors involved.