It is similar to the English word "alone", and is used in the same way. For example:
* "Ich bin allein." (I am alone.)
* "Sie gingen allein zum Laden." (She went to the store alone.)
Note: In some contexts, "allein" can also have the connotation of "solitary" or "lonely," but this is not always the case.