TO RESIGN is to quit a job. TO RETIRE is to stop working when you are old.
They both mean TO STOP WORKING, but TO RETIRE can also mean to stop working with a specific company after many years. Typically when one retires, he or she is paid a small amount by the company every month based on how long he or she worked for the company.