Objective: To analyze the knowledge in palliative care and the attitudes toward caring for the dying of nurses who carry out their professional activity in primary care in Spain. Design: A cross-sectional descriptive observational study was carried out among Spanish primary care centers. Participants: A total of 244 nurses who had completed their primary care work and agreed to participate in this study were included. Main measurements: The level of knowledge in palliative care was analyzed using the PCQN-SV scale, and attitudes toward care of the dying were measured with the FATCOD-S scale, both of which are instruments that are validated in Spain. Results: Regarding the level of knowledge in palliative care, at a global level, the results revealed that 60% of the answers in the PCQN-SV were correct, with different results for each of the three subscales that compose it. When analyzing the attitudes of primary care nurses toward the care of the dying, an average of 132.21 out of 150 was obtained, representing a positive attitude. On the other hand, when analyzing these results in terms of knowledge and attitudes according to the population’s characteristics, we see that participants with both experience and training in palliative care present a better level of knowledge and a higher score regarding their attitudes toward care of the dying. However, the differences are only significant regarding the level of knowledge in palliative care. When analyzing the data from the two scales together, it is noteworthy that the participants with the most positive attitudes (highest scores on the FATCOD-S) also have the highest percentages of correct answers on the PCQN-SV.