Learning a foreign language requires interaction with language input while involved in a task. Given that problem‐based learning (PBL) offers hands‐on application in realistic contexts, and that virtual reality (VR) enables learners to interact with multiple modalities of information, this study examines how the integration of VR technology into PBL contexts affects students' motivation for, problem‐solving during, and vocabulary acquisition in learning English as a foreign language (EFL). A total of 84 engineering majors who enrolled in a course of English for specific purposes were randomly assigned to either an experimental group or a control group. Students in the experimental group participated in a VR‐assisted PBL context, in which they were to view a PBL scenario using VR technology and then to create VR videos about solving the given problems. Those in the control group participated in a PBL context without the use of VR technology for viewing and solving the identical scenario. After the intervention, all the students wrote a problem‐solving analysis, took a vocabulary knowledge test, completed a learning motivation questionnaire, and participated in individual interviews. The results showed that the students in the experimental group significantly outperformed those in the control group in terms of vocabulary acquisition, and were more motivated to learn English related to their future careers, whereas there was no significant difference in the problem‐solving performance of the two groups. Implications of these findings highlight the value of engaging EFL learners in immersive environments for contextualized learning through the integrated use of VR and PBL.