Background: Team-based learning (TBL) was studied in several preclinical settings, but evidence for its effectiveness in community nursing education is scant. A community health care nursing course was developed, and nursing students engaged in TBL to achieve Sustainable Development Goal 3. Purpose: This study aimed to examine the effect of TBL model integration on students’ learning attitude, community understanding, and community care competence for achieving SDG 3 and determine the extent to which the TBL model altered students’ nursing competence for providing community health care. We compared the effect of TBL and traditional learning (TL) in terms of community health care knowledge objectives. Methods: TBL was employed as the teaching strategy to guide students’ discussion of community care issues, allowing them to fully utilize the knowledge acquired in their community practice. We used an unblinded crossover design, and 99 students participated in the community health nursing course. Results: The results demonstrated that TBL improved participants’ community understanding and enhanced their skills for assessing and fulfilling community needs. The experimental and control groups differed significantly in their TBL performance, learning attitude, and nursing competencies. The performance of those who engaged in TBL was higher than that of those who engaged in TL on all community issues. TBL appears to be a more effective method than TL in terms of achieving nursing students’ knowledge objectives. Conclusions: Regarding practical application, the proposed intervention enables nursing students to acquire professional knowledge related to community aging health care and nursing skills, and establish partnerships with community residents. This facilitates the achievement of the United Nations’ sustainable development goal of ensuring healthy living and promoting well-being at all ages.