While you cannot eliminate the risk entirely, maintaining a healthy lifestyle, managing underlying health conditions, and avoiding smoking can significantly reduce the chances of having a stroke.