It modifies a verb, adjective, or another adverb, indicating order or sequence, specifically the second item in a series.
For example:
* Secondly, we need to gather all the necessary materials. (modifies the verb "need")
* The weather is secondly important for our plans. (modifies the adjective "important")
* We should secondly consider the risks involved. (modifies the adverb "secondly")