Heat oil in a large nonstick skillet over medium-low heat.
Add green beans, shallot and garlic to pan and cook, stirring occasionally, until shallot is caramelized and green beans are crisp-tender, about 15-20 minutes. Season with salt and pepper before serving.